<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/7
  Time: 9:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Text</title>
    <script>
        function regist()
        {
            targetForm=document.forms[0];
            targetForm.action="formtext!regist"
        }
    </script>
</head>
<body>
<form action="formtext.action">
    用户名：<br/>
    <input type="text" name="username"><hr/>
    密码：<br/>
    <input type="password" name="password"><hr/>
    真实姓名：<br/>
    <input type="text" name="realname"><hr/>
    年龄：<br/>
    <input type="text" name="age"><hr/>
    出生日期：<br/>
    <input type="text" name="birthday"><hr/>
    <input type="submit" value="注册" onclick="regist();">
</form>
</body>
</html>
